<template>
  <div class="logo-view">
    <svg-icon class="logo-icon" :style="{ color: color || '#ffffff' }" name="logo"></svg-icon>
    <div v-if="!hiddenText" class="text">边缘计算盒管理平台</div>
  </div>
</template>

<script setup lang="ts">
defineProps({
  color: {
    type: String,
    default: '',
  },
  hiddenText: {
    type: Boolean,
    default: false,
  },
});
</script>

<style lang="less" scoped>
.logo-view {
  display: flex;
  align-items: center;
  gap: 16px;

  .logo-icon {
    color: #fff;
    width: 32px;
    height: 32px;
  }

  .text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
  }
}

@media screen and (width < 1000px) {
  .logo-view {
    .text {
      display: none;
    }
  }
}
</style>
